package periodTask

type TaskType int

const (
	TaskShare = TaskType(1)
	TaskAlone = TaskType(2)
	TaskOnce  = TaskType(3)
)

type IPeriodTask interface {
	TaskType() TaskType
	SchedulePeriod() int64
	Execute()
}

type periodTask struct {
	id   string
	task IPeriodTask
	time int64
}
